<?php
class ClNewsletter
{
	protected $table;
	public function ClNewsletter()
	{
		global $wpdb;
		$this->table = $wpdb->prefix.'newsletter';
	}
	
	//// get all newsletter
	public function get_all_newsletters()
	{
		global $wpdb;
		$query	= "SELECT * FROM $this->table";
		$result	= $wpdb->get_results($query, OBJECT);
		if($result)
			return $result;
		else
			return false;
	}
}